<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    //基本类型有各自的存储空间，相互不影响
let n=20;
let m=n;
m=30;
console.log(n)

//引用类型
//1、数组
let arr=['a','b','c'];

let arr2=arr;

arr2[2]='d';

console.log(arr);

arr2=[1,2,3];
console.log(arr2);
</script>